﻿using NGettext;

namespace Fuse8.ContentManagementFramework.SystemFacade.Globalization.NGetText
{
    internal class NGetTextProvider : IGetTextProvider
    {
        private readonly ICatalog _catalog;

        public NGetTextProvider(ICatalog catalog)
        {
            _catalog = catalog;
        }

        public string GetText(string original, params object[] values)
        {
            return _catalog.GetString(original, values);
        }

        public string GetPluralText(string single, string plural, long number, params object[] values)
        {
            return _catalog.GetPluralString(single, plural, number, values);
        }
    }
}